<? $attributes = array('class' => 'email', 'id' => 'checknew');
    echo form_open('bannerMainCat/dels', $attributes);?>

<table class="admindata" width="100%">
    <thead>
        <tr>
            <th colspan="4"> <input type="submit" onClick="return verify_del();" name="btn_submit" value="Xóa">
                Hiện có
                <?=$num?>
                bài viết
                <?=$pagination?>
            </th>
        </tr>
        <tr>
            <th class="checkbox"><input type="checkbox" name="sa" id="sa" onClick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
            <th>Tên danh mục</th>
            <th>Chú thích loại bannermian</th>
            <th class="publish">Chức năng</th>
        </tr>
    </thead>
    <?
        $k=1;
        $i=1;
        foreach($list as $rs):
        ?>
    <tr class="row<?=$k?>">
        <td><input type="checkbox" name="ar_id[]" value="<?php echo $rs->idBannerCat;?>"></td>
        <td><?php echo $rs->subject; ?></td>
        <td><?php echo $rs->cm_baner_cat; ?></td>
        <td align="center"><?=icon_edit('bannerMainCat/update/'.$rs->idBannerCat)?>
            &nbsp; <span id="publish<?=$rs->idBannerCat?>"><?=icon_active("'bannermain_cat'","'idBannerCat'",$rs->idBannerCat,$rs->status)?></span> &nbsp;
            <?=icon_del('bannerMainCat/del/'.$rs->idBannerCat.'/'.(int)$this->uri->segment(4))?></td>
    </tr>
    <?
        $k=1-$k;
        $i++;
        endforeach;?>
    <tfoot>
    <td colspan="4"><input type="submit" onClick="return verify_del();" name="btn_submit" value="Xóa">
            Hiện có
            <?=$num?>
            bài viết
            <?=$pagination?></td>
            </tfoot>
</table>
<?=form_close()?>
